<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		request.setCharacterEncoding("utf-8");
	String name = request.getParameter("username");
	String pwd  = request.getParameter("pwd");
	if(name.equals("znn") && pwd.equals("123")){
		session.setAttribute("user", name);
		request.getRequestDispatcher("success.jsp").forward(request, response);
	}else{
		request.getRequestDispatcher("login.jsp").forward(request, response);
	}
		
		%>
</body>
</html>